package net.wanho.zaixian.cms.service.impl;

import net.wanho.zaixian.cms.dao.CmsSiteDao;
import net.wanho.zaixian.cms.service.CmsSiteService;
import net.wanho.zaixian.pojo.cms.CmsSite;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CmsSiteServiceImpl implements CmsSiteService {
    @Resource
    private CmsSiteDao cmsSiteDao;

    /**
     * 查询所有的站点
     * @return
     */
    @Override
    public List<CmsSite> getAllSite() {
        List<CmsSite> cmsSiteList = cmsSiteDao.findAll();
        return cmsSiteList;
    }
}
